Skip to content

Conversation

cbum-dev
Copy link
Contributor

What kind of change does this PR introduce?
Added both linkedin and twitter links in blog.

Issue Number:

Screenshots/videos:
image

If relevant, did you update the documentation?

Summary

Does this PR introduce a breaking change?

Checklist

Please ensure the following tasks are completed before submitting this pull request.

@cbum-dev cbum-dev requested a review from a team as a code owner June 30, 2025 17:45
Copy link

github-actions bot commented Jun 30, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview 4dc437b

Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d585a99) to head (4dc437b).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1751   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines          548       548           
  Branches       158       158           
=========================================
  Hits           548       548           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@Utkarsh-123github Utkarsh-123github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cbum-dev , your code changes are working perfect. But there's a slight edge case which needs to be handled.
What if the social link provided by author is not a Linkedin/X URL ? for example see the screenshot.

I think for better code clarity and readability you can opt like this :

{author.link.includes("linkedin.com/in/")
  ? author.link
      .replace(/https?:\/\/(www\.)?linkedin\.com\/in\//, '')
      .replace(/\/$/, '')
  : author.link}

I know the link will still be the same as it is in screenshot, but it's a good practice to check the edge case, so that there's no confusion for the new contributors.

image

@github-project-automation github-project-automation bot moved this from Ready to review to Changes requested in PR - Triage Group Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Changes requested
Development

Successfully merging this pull request may close these issues.

✨ Enhancement: Linking LinkedIn Profile of Author in Blogs
2 participants